<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="#{webContext.skin0Culomns}"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="head">
        <link href="#{webContext.baseNoFacesUrl}#{webContext.tplPatch}action/action.css" rel="stylesheet" type="text/css" />
    </ui:define>
    
    <ui:define name="center">
        #{actionShow.init(param["p2"])}
        <h:form id="actionForm">
            <h1>#{actionShow.action.name}</h1>
            <h:panelGrid columns="2" styleClass="atributes">
                <h:outputText value="#{ml.tr('From')}: " />
                <h:outputText value="#{actionShow.action.fromDate.day}. 
                              #{actionShow.action.fromDate.month}. 
                              #{actionShow.action.fromDate.year}" />
                
                <h:outputText value="#{ml.tr('To')}: " />
                <h:outputText value="#{actionShow.action.fromDate.day}. 
                              #{actionShow.action.fromDate.month}. 
                              #{actionShow.action.fromDate.year}" />
                
                <h:outputText value="#{ml.tr('Price')}: " />
                <h:outputText value="#{actionShow.action.actualPrice}"/>
                
                <h:outputText value="#{ml.tr('Price for member')}: " />
                <h:outputText value="#{actionShow.action.actualPriceMember}"/>
                
                <p:commandButton value="#{ml.tr('Registred')}" />
            </h:panelGrid>
            <h:outputText escape="false" 
                          value="#{actionShow.action.description}" />
            
        </h:form>
    </ui:define>
</ui:composition>
